package com.qf.exeception.handler;

import com.qf.Vo.ResultVo;
import com.qf.Vo.ResultVoUtils;
import com.qf.exeception.EntryExeception;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class EntryExceptionHandler {
    @ExceptionHandler(EntryExeception.class)
    public ResultVo err(EntryExeception ex){
        return ResultVoUtils.err(ex);
    }

}
